package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {
    //分类列表
    List<Category> findList();
//分类增加
    void save(Category category);
//修改
    void update(Category category);
//删除分类
    void deleteById(Long id);
//套餐中分类数量
    Integer countSetmealCategoryId(Long id);
    //菜品中分类数量
    Integer countDishCategoryId(Long id);
}
